﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for BenhNhan
/// </summary>
public class BenhNhan
{
    private string _maBN;
    public string MaBN
    {
        get { return _maBN; }
        set { _maBN = value; }
    }
    private string _hoTen;
    public string HoTen
    {
        get { return _hoTen; }
        set { _hoTen = value; }
    }
    private string _diaChi;
    public string DiaChi
    {
        get { return _diaChi; }
        set { _diaChi = value; }
    }
    private string _doiTuong;
    public string DoiTuong
    {
        get { return _doiTuong; }
        set
        {
            _doiTuong = value;
        }
    }
    private bool _uuTien;
    public bool UuTien
    {
        get { return _uuTien; }
        set { _uuTien = value; }
    }
    private DateTime _ngaySinh;
    public DateTime NgaySinh
    {
        get { return _ngaySinh; }
        set { _ngaySinh = value; }
    }
    private string _namSinh;
    public string NamSinh
    {
        get { return _namSinh; }
        set { _namSinh = value; }
    }
    private DateTime _ngayDangKy;
    public DateTime NgayDangKy
    {
        get { return _ngayDangKy; }
        set { _ngayDangKy = value; }
    }
    private string _gioiTinh;
    public string GioiTinh
    {
        get { return _gioiTinh; }
        set { _gioiTinh = value; }
    }

    private DAL_BenhNhan dal_BenhNhan;
	public BenhNhan()
	{
        MaBN = "";
        HoTen = "";
        DiaChi = "";
        DoiTuong = "";
        UuTien = false;
        NgaySinh = NgayDangKy = DateTime.Now;
        GioiTinh = "0";
        dal_BenhNhan = new DAL_BenhNhan();
	}    

    public BenhNhan(string MaBN)
    {
        dal_BenhNhan = new DAL_BenhNhan();
        MaBN = "";
        HoTen = "";
        DiaChi = dal_BenhNhan.LayThongTinDiaChi(MaBN);
        DoiTuong = "";
        UuTien = false;
        NgaySinh = NgayDangKy = DateTime.Now;
        GioiTinh = "0";
    }
}